package cn.yunhe.hom2;

public class Cat extends MyPet {
    float weight;

    public Cat(String name, int age, String color, float weight) {
        super(name, age, color);
        this.weight = weight;
    }

    public Cat() {
    }

    @Override
    public void playWithOwner() {
        super.playWithOwner();
    }

    public void zhuaLaoShu() {
        System.out.println("我是"+getName()+"我抓老鼠");
    }
}
